import request from '@/utils/request'
export default {
  queryGroup(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/queryGroup',
      method: 'post',
      data
    })
  },  getFleet(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleet',
      method: 'post',
      data
    })
  },   addGroupMemberNew(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/addGroupMemberNew',
      method: 'post',
      data
    })
  },   getTalk(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/Subscriber/getTalk',
      method: 'post',
      data
    })
  },  queryGroupMember(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/queryGroupMember',
      method: 'post',
      data
    })
  },  getGroupNumber(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/getGroupNumber',
      method: 'post',
      data
    })
  },  addGroupByDC(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/addGroupByDC',
      method: 'post',
      data
    })
  }, updateGroup(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/updateGroup',
      method: 'post',
      data
    })
  }, deleteGroup(data) {

    return request({
      ContentType: 'application/json',
      // url: '/scs/group/deleteGroup?groupId='+data.groupId,
      url: '/scs/group/deleteGroup',
      method: 'post',
      data
    })
  },  deleteGroupMember(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/deleteGroupMember',
      method: 'post',
      data
    })
  } , updateGroupMember(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/group/updateGroupMember',
      method: 'post',
      data
    })
  }, getFleetSystem(data) {
    return request({
      ContentType: 'application/json',
      url: '/scs/fleetManage/getFleetSystem',
      method: 'post',
      data
    })
  },
 /* IntercomGroupManage.updateSystemAddressBookIndex(data)
  .then(res => {

  }).catch(err => {
    // 异常情况
    console.log(err);
  });*/
}
